package com.shanyepifu;

import com.shanyepifu.client.RPCRefer;
import com.shanyepifu.inter.TestInter;

import java.net.InetAddress;

/**
 * Created by lifaxin on 16/7/18.
 */
public class StartClient {


    public static void main(String[] args) {
        try {
            RPCRefer rpcRefer = new RPCRefer();
            TestInter proxy = rpcRefer.refer(TestInter.class, InetAddress.getLocalHost(), 5241);
            String s = proxy.login("lifaxin");
            System.out.println(s);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

}
